package com.danskin.wechat.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.danskin.wechat.entity.CustPointRecord;
import com.danskin.wechat.entity.example.CustPointRecordExample;
import com.danskin.wechat.util.Page;

public interface CustPointRecordDao {
	
	/**
	 * 新建积分领取记录
	 * @param param
	 * @return
	 * @author makunsmac
	 */
	int insertCustPointRecord(CustPointRecord param);

	CustPointRecord queryCustPointRecord(String appId, String openId);

	List<CustPointRecord> listPageCustPointRecordListAPI(Page page);
	
	int insertSelective(CustPointRecord entity);

	List<CustPointRecord> listPageQueryCustOrderRecord(Page page);
	
    int countByExample(CustPointRecordExample example);

    int deleteByExample(CustPointRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CustPointRecord record);


    List<CustPointRecord> selectByExample(CustPointRecordExample example);

    CustPointRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CustPointRecord record, @Param("example") CustPointRecordExample example);

    int updateByExample(@Param("record") CustPointRecord record, @Param("example") CustPointRecordExample example);

    int updateByPrimaryKeySelective(CustPointRecord record);

    int updateByPrimaryKey(CustPointRecord record);

}
